package JavaDesign.report_8.t_1;

public class ClientServerFacade {
    String advertisement;
    private CheckWord checkWord;
    private Charge charge;
    private TypeSeting typeSeting;

    public ClientServerFacade(String advertisement) {
        this.advertisement = advertisement;
        checkWord = new CheckWord(advertisement);
        charge = new Charge(checkWord);
        typeSeting = new TypeSeting(advertisement);
    }

    public void doAdvertisement() {
        checkWord.setChargeAmount();
        charge.giveCharge();
        typeSeting.typeSeting();
    }
}